package com.tengju.user.infrastructure.persistence.mybatis.mapper.dealer.custom;

import com.tengju.user.domain.model.user.UserInfo;
import com.tengju.user.infrastructure.persistence.mybatis.dataobject.UserZoneMemberDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserZoneMemberMapper {

    List<UserZoneMemberDO> selectByZoneId(@Param("zoneId") Long zoneId);

    void deleteByZoneId(@Param("zoneId") Long zoneId);

    void insert(@Param("zoneId") Long zoneId,
                @Param("memberIdCode") Long memberIdCode,
                @Param("memberUserId") Long memberUserId);

    void batchInsert(@Param("userZoneMemberDOList") List<UserZoneMemberDO> userZoneMemberDOList);

    List<Long> selectIdcodeByZoneId(@Param("zoneId") Long zoneId);

    List<UserZoneMemberDO> selectByUserIdCode(@Param("memberIdCodeList") List<Long> memberIdCodeList);
}
